﻿using MHI.DeviceManager.Data;
using MHI.DeviceManager.Interfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebFoundation;

namespace MHI.DeviceManager.Business
{
    internal class DevDevicemaintenanceTList : BaseWritableEntities<DevDevicemaintenanceT>, IDevDevicemaintenanceTList
    {
        private WFModule _module;
        private DevDevicemaintenanceTQueryDAO _queryDao;
        private DevDevicemaintenanceTWritingDAO _writeDao;

        public DevDevicemaintenanceTList(DevDevicemaintenanceTQueryDAO querydao, DevDevicemaintenanceTWritingDAO writingDao, WFModule module)
            : base(querydao, writingDao)
        {
            this._queryDao = querydao;
            this._writeDao = writingDao;
            this._module = module;
        }

        public List<DevDevicemaintenanceT> GetMaintenanceItemsById(int deviceId)
        {
            return _queryDao.GetMaintenanceItemsById(deviceId).ToList<DevDevicemaintenanceT>();
        }
    }
}
